* {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px dashed skyblue;
}

.like-btn {
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  background-color: #eee;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.like-btn i {
  font-size: 36px;
}

.btn-scale {
  animation: scale 0.2s linear;
}

@keyframes scale {
  from {
    transform: scale(0.8);
  }
  90% {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.emoji {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  left: 0;
  font-size: 36px;
}
.emoji-animate {
  /* animation-name: emo-scale, move-y, emo-opacity; */
  animation-duration: 1.5s;
  animation-timing-function: linear;
}
/* 动画拆解
 1. 缩放
 2. y轴移动
 3. 透明度变化
 4. x轴移动
*/
@keyframes emo-scale {
  from {
    transform: scale(0.3);
  }
  to {
    transform: scale(1.2);
  }
}

@keyframes move-y {
  to {
    top: -400px;
  }
}

@keyframes emo-opacity {
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }  
}

